package com.dragon.logical.service.finance;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dragon.repository.entity.Expenses;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sy
 * @since 2023-11-24
 */
public interface IExpensesService extends IService<Expenses> {

    /**
     * 分页
     * @param page
     * @param limit
     * @param type
     * @return
     */
    Page<Expenses> expensesList(Integer page, Integer limit, Integer type, Integer isDisable);

    /**
     * 添加
     * @param expenses
     */
    void addToExpenses(Expenses expenses);

    /**
     * 修改
     * @param expenses
     */
    void updateExpenses(Expenses expenses);

    /**
     * 禁用启用
     * @param id
     */
    void disableEnable(Integer id);
}
